package com.ay.weixin.fdc.boss.bank.db;

import java.sql.SQLException;
import java.util.List;

import lizar.db.ibatis.Dao;

import com.ay.weixin.fdc.boss.bank.domain.BankAccount;

public class BankAccountDao extends Dao{
	public void insert(BankAccount bank) throws SQLException{
		this.sqlMapper.insert("bank_account.insert",bank);
	}
	
	public List<BankAccount> getByUserId(long user_id) throws SQLException{
		return (List<BankAccount>)this.sqlMapper.queryForList("bank_account.getByUserId",user_id);
	}
	
	public void update(BankAccount bank) throws SQLException{
		this.sqlMapper.update("bank_account.update",bank);
	}
}
